#!/usr/bin/env python
# -*- coding: UTF-8 -*-
# Last modified: 

""" 模块名
@version: 0.1
@author: ChiBin <ggyqfc@gmail.com>
@license: LGPL
@see:

"""

def main():
    s = 'hi'
    print s[1]
    print len(s)
    print s + " there"

    pi = 3.14
    ##text = 'The value of pi is ' + pi ## No, does not work
    text = 'The value of pi is ' + str(pi) #yes
    print text
    raw = r'this\t\n and that'
    print raw ##this \t\n and that

    multi = """It was the best of times.
    It was the worst of times."""
    print multi.center(2,'t')
    s1 = '   spacious   '.lstrip()
    s2 = 'www.example.com'.lstrip('w.')
    print s1,s2
    print s2.replace('example','uss9')
    print 'a,,b'.split(',')
    print 'a<b<c'.split('<')
    print '[1,2,3]'.join('--->')
    print '---->'.join(['a','b','12'])
    print multi.startswith('it')
    ustring = u'A unicode \u018e string \xf1'
    print ustring
    print  multi.endswith('times.')
    

if __name__ == '__main__':
	main()


